package com.mmd.admin.model.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mmd.base.pojo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

/**
 * <p>
 * 支付配置
 * </p>
 *
 * @author ${author}
 * @since 2023-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("life_serve_pay_set")
@ApiModel(value="PaySet对象", description="支付配置")
public class PaySet extends BaseEntity<PaySet> {

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "1元等于多少积分")
    private BigDecimal conversion;

    @ApiModelProperty(value = "商品金额可以使用多少比例的积分")
    private BigDecimal ratio;

    @ApiModelProperty("1消费积分2红包余额3购购金4消费金")
    private Integer paymentType;

    @ApiModelProperty("每天限制支付笔数")
    private Integer astrictPayNum;

    @ApiModelProperty("每天限制支付金额")
    private BigDecimal astrictMoney;

    @ApiModelProperty("直播现金+消费金 消费金多付比例  1=100%")
    private BigDecimal overpaymentRatio;

    @ApiModelProperty("折扣比例 小于这个比例")
    private BigDecimal discountRatioMin ;

    @ApiModelProperty("折扣比例 小于这个比例")
    private BigDecimal discountRatioMax;
}
